package com.kedacom.emptyproject.adapter

import android.databinding.ViewDataBinding
import com.kedacom.emptyproject.databinding.ItemSimpleDayBinding
import com.kedacom.lego.adapter.recyclerview.LegoBaseRecyclerViewAdapter

/**
 * <pre>
 *     根据服务端的返回值，不同的状态，显示不同的背景色。
 *     作者：Caowj
 *     邮箱：caoweijian@kedacom.com
 *     日期：2022/4/26 18:07
 * </pre>
 */
class SimpleAdapter(
    layoutId: Int,
    data: List<Int>?,
    brVariableId: Int
) :
    LegoBaseRecyclerViewAdapter<Int>(layoutId, data, brVariableId) {

    override fun onCustomBindItem(binding: ViewDataBinding, position: Int) {
        super.onCustomBindItem(binding, position)
        binding as ItemSimpleDayBinding
        binding.tvItemScheduleDay.text = "" + data[position]
    }
}